<?php
if(!defined("EXE"))
{
	echo "khong co quyen truy xuat";
	exit;
}
$maqc = utils::getIndex("idqc");
$result = $obj-> query(" select * from quangcao ");
?>
<div class="nd">
<?php
	foreach($result as $row )
	{
		if($maqc%2==0)
		{
			$cot="left_nd";
		}
		else $cot="right_nd";
	?>
    
     <div class="<?php echo $cot; ?>">
        <a style="color: inherit;" href="#"></a>
        
        <div class="box_content">
            <!--<div class="right-arrow"></div>-->
            <img src="<?php echo BASE_URL;?>images/index/<?php echo $row["hinhqc"];?>">
            <h2 class="news-title"><?php echo $row["tenqc"];?></h2>
            <p style="text-align: justify;">
                <span style="font-family: roboto;">
                	<?php echo $row["chitiet"]; ?>
                </span></p>
        </div><!--end box_content-->
    </div>
    <?php
	}
	?>
</div><!--End to nd-->